package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;
import com.javaweb.service.dto.UserConditionDto;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;

    public List<User> findUserByName(String username) ;

    public User queryByName(String username) ;

    public int register(User user) ;

    public PageResult queryUsers(UserConditionDto userCondition, Integer pageNum, Integer pageSize) ;

    public void addAssignRole(String userId, List roleIds) ;




}
